package statics;

public final class TradingConst {
	public static final double MIN_IN_HOUR = 60;
	public static final double SEC_IN_MIN = 60;
	public static final double SEC_TO_MS = 1000;
	public static final double MS_IN_HOUR = MIN_IN_HOUR*SEC_IN_MIN*SEC_TO_MS;
	public static final double DAYS_IN_MONTH = 30;
	public static final double HOURS_IN_DAY = 24; 
	public static final long Tick_TO_MS = 100;
	public static final long TickListenerAgentRefreshingMS = 1000;
	
	public static final double HOME_AGENT_MIN_TO_UPDATE_RETAILERS = 10;
	public static final double WATT_TO_KW = 0.001;
	public static final int RETAILER_AGENT_MIN_TO_UPDATE_PRICE = 20;
	public static final int RETAILER_AGENT_MIN_TO_GENERATE_POWER = 40;
	
	public static int ACCELERATION_RATE = 100; //10min == 1s
	public static double HOME_AGENT_MIN_TO_UPDATE_LOAD = 7;
	
	public static double NormaliseMinToMonth(double minute)
	{
		return (TradingConst.MIN_IN_HOUR/minute)*(TradingConst.HOURS_IN_DAY * TradingConst.DAYS_IN_MONTH);
	}
	
	
}
